from langchain.prompts import ChatMessagePromptTemplate

prompt = "愿{subject}与你同在！"

chat_message_prompt = ChatMessagePromptTemplate.from_template(role="天行者", template=prompt)
res = chat_message_prompt.format(subject="原力")
print(res)
